<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="_common/title.jsp" %>
<body>
    <%@include  file="_common/header.jsp" %>

    <div id="main">
        <div id="content" class="container login-form">
            <%
                if (null == session.getAttribute("user")) { %>
            <%@include  file="_common/nulllogin.jsp" %>
            <%                            } else {
                    response.sendRedirect("home.jsp");
                }
            %>
            <div class="col-xs-12 col-sm-12 col-md-7 col-lg-4 hidden-xs hidden-sm">
            </div>
            <div class="col-xs-12 col-sm-12 col-md-5 col-lg-4">
                <div class="well no-padding">
                    <html:form action="/loginUser.do" method="post" styleClass="smart-form client-form" >
                        <header>
                            Sign In
                        </header>
                        <fieldset>
                            <section>
                                <label class="label">User Id</label>
                                <label class="input"> <i class="icon-append fa fa-user"></i>
                                    <input placeholder="Username" required="required" autofocus="autofocus" autocomplete="on" name="userId"  type="text">
                                </label>
                            </section>

                            <section>
                                <label class="label">Password</label>
                                <label class="input"> <i class="icon-append fa fa-lock"></i>
                                    <input placeholder="Password" required="required" autocomplete="on" name="password" type="password" value="">
                                </label>
                            </section>
                            <section>
                                <p style="color:red">
                                    ${requestScope["errorLoginUser"]}
                                </p>
                            </section>

                            <section>
                                <label class="checkbox">
                                    <input checked="checked" name="remember_me" type="checkbox" value="1">
                                    <i></i>Stay signed in</label>
                            </section>
                            <section>
                                <a href="">If you have forgotten your password, change it here</a>
                            </section>
                        </fieldset>
                        <footer>
                            <input class="btn btn-primary" type="submit" value="Sign in">
                        </footer>
                    </html:form>
                </div>

            </div>
            <!-- ends col-main -->
        </div>
        <!-- ends main -->
    </div>
    <!-- ends main-container -->
    <div class="row footer-left">
        <p>&COPY; 2014 Group3 Aprotrain Aptech<br /> All Rights Reserved</p>
    </div>
    <%@include  file="_common/footer.jsp" %>

</body>
</html>
